package com.qf.mybatis925.service;

import com.qf.mybatis925.entity.User;
import com.qf.mybatis925.entity.VO.UserVO;
import com.qf.mybatis925.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

public interface UserService {

    List<User> getAllUser();

    Object getUserById(Integer id);


    //findUserByLogin
    User findUserByLogin(User  user);

    List<User> search(HashMap<String, String> map);

    int delete(User id);

    void updateById(User user);

    List<User> searchV2(HashMap<String, String> map);

    void updateById2(User user);


    List<UserVO> findUserOrdersById(Integer id);
}


